import request from '@/utils/request'

/**
 * 上传文件
 * @param {FormData} formData - 包含文件和路径的表单数据
 * @returns {Promise}
 */
export function upload(formData) {
    return request({
        url: '/common/upload',
        method: 'post',
        data: formData,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}